<!DOCTYPE html>
<html class="test-wait">
<!-- Test that setting the role an an aria-owns element does not crash. -->
<script>
document.addEventListener("DOMContentLoaded", () => {
  requestAnimationFrame(() => {
    requestAnimationFrame(() => {
      document.getElementById('owner').role = 'tab';
      requestAnimationFrame(() => {
        requestAnimationFrame(() => {
          document.documentElement.className = '';
        });
      });
    });
  });
});
</script>
</head>
<body>
<main>
  <fieldset id='owner' aria-owns="paragraph1">
    <div>
      <p id="paragraph1">
        <mark>
          Child
        </mark>
      </p>
    </div>
  </fieldset>
</main>

</body>
</html>
